Page({
  editHouse() {
    wx.navigateTo({
      url: '/house_pkg/pages/form/index?id=' + this.data.id,
    })
  },
  onLoad({ id }) {
    this.getHouseDetail(id)
    this.setData({
      id
    })
  },
  async getHouseDetail(id) {
    const { code, data } = await wx.http.get(`/room/${id}`)
    if (code !== 10000) return wx.utils.toast()
    console.log(id);
    this.setData({
      ...data
    })
  }
})
